import request from '@/utils/request'

// 查询车辆配置列表
export function listLifeCarConfig(query) {
  return request({
    url: '/mes/life/lifeCarConfig/list',
    method: 'get',
    params: query
  })
}

// 查询车辆配置详细
export function getLifeCarConfig(id) {
  return request({
    url: '/mes/life/lifeCarConfig/' + id,
    method: 'get'
  })
}

// 新增车辆配置
export function addLifeCarConfig(data) {
  return request({
    url: '/mes/life/lifeCarConfig',
    method: 'post',
    data: data
  })
}

// 修改车辆配置
export function updateLifeCarConfig(data) {
  return request({
    url: '/mes/life/lifeCarConfig',
    method: 'put',
    data: data
  })
}

// 删除车辆配置
export function delLifeCarConfig(id) {
  return request({
    url: '/mes/life/lifeCarConfig/' + id,
    method: 'delete'
  })
}
